﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Marmat.Forms.Skin
{

    public class CardPanelCollection : ControlItemCollection<CardPanelItem>
    {
        public CardPanelCollection(Control control) : base(control) { }

        public override void Add(CardPanelItem item)
        {
            if (string.IsNullOrEmpty(item.Name))
                item.Name = nameof(CardPanelItem) + (this.Count + 1);
            base.Add(item);
        }
    }
}
